package com.bs.mapper;


import com.bs.bean.User;
import com.bs.bean.Video;
import com.bs.bean.VideoClick;
import com.bs.bean.VideoType;

import java.util.List;

public interface VideoMapper {



    boolean addVideo(Video video);

    boolean addVideoClick(VideoClick videoClick);

    int selectVideoClick(VideoClick videoClick);

    void addVideoClickNum(VideoClick videoClick);

    List<Video> getVideoList();

    List<Video>getVideoListByHeat();

    List<Video>getVideoListBySystem();

    List<Video> getVideoListByType(Integer typeId);

    List<Video> getOtherVideoListByType(Integer id);

    List<Video>getVideoListByAuthor(String author);

    List<Video> getVideoListRecord(String username);

    List<Video>getVideoListByOnly(VideoClick videoClick);

    Video getVideoById(Integer id);

    int deleteVideoById(Integer id);

    int selectTypeIdByName(String typeName);

    List<Video> getVideoByName(String title);

    boolean addVideoPushById(Video video);

    void addVideoVv(Integer id);

    void addVideoDownload(Integer id);

    void addVideoTc(Integer id);

    void delVideoTc(Integer id);

    List<VideoType> getOneType();

    VideoType getTypeBySTypeName(String typeName);

    void addTypeByTypeName(VideoType videoType);

    int getVideoTypeByLast(String username);

    String getVideoAuthorByNum(String username);


}
